﻿package com.dykj.platform.framework.common.paging;

import java.util.List;
public class Hquery {
	   /**
	    * HQL查询语句
	    */
	   private String queryString;

	   /**
	    * 参数集合对象
	    */
	   private List paralist;
	   /**
	    * 排序方式
	    */
	   private String sortOrder;

	   /**
	    * 排序字段
	    */
	   private String orderby;

	   /**
	    * 分组字段
	    */
	   private String groupby;

	   /**
	    * 数据权限绑定表字段
	    */

	   private String dataAccessBindingTable;

	   /**
	    * 数据权限字段
	    */
	   private String dataAccessAuth;

	   /**
	    * 分页起始查询地址
	    */
	   private int pageStartNo;

	   /**
	    * 取得一个Hibernate的Query对象
	    * 
	    * @return：Query对象
	    */
	   public String getQueryString() {
	      return queryString;
	   }

	   /**
	    * 设置一个HQL查询字符串
	    * 
	    * @param queryString：查询字符串
	    */
	   public void setQueryString(String queryString) {

	      this.queryString = queryString;

	   }

	   public List getParalist() {
		return paralist;
	}

	public void setParalist(List paralist) {
		this.paralist = paralist;
	}

	/**
	    * 取得排序字段
	    * 
	    * @return：排序字段
	    */
	   public String getOrderby() {
	      return orderby;
	   }

	   /**
	    * 设置排序字段
	    * 
	    * @param orderby
	    */
	   public void setOrderby(String orderby) {
	      if ((null != orderby) && (!"".equals(orderby))) {
	         this.orderby = " order by " + orderby;
	      } else {
	         this.orderby = "";
	      }
	   }

	   /**
	    * 取得分组字段
	    * 
	    * @return
	    */
	   public String getGroupby() {
	      return groupby;
	   }

	   /**
	    * 设置分组字段
	    * 
	    * @param groupby
	    */
	   public void setGroupby(String groupby) {
	      this.groupby = groupby;
	   }

	   /**
	    * 取得页起始地址
	    * 
	    * @return
	    */
	   public int getPageStartNo() {
	      return pageStartNo;
	   }

	   /**
	    * 设置页起始地址
	    * 
	    * @param pageStartNo
	    */
	   public void setPageStartNo(int pageStartNo) {
	      this.pageStartNo = pageStartNo;
	   }

	   public String getDataAccessBindingTable() {

	      return dataAccessBindingTable;
	   }

	   public void setDataAccessBindingTable(String dataAccessBindingTable) {
	      this.dataAccessBindingTable = dataAccessBindingTable;

	   }

	   public String getDataAccessAuth() {

	      return dataAccessAuth;
	   }

	   public void setDataAccessAuth(String dataAccessAuth) {
	      this.dataAccessAuth = dataAccessAuth;

	   }

	public String getSortOrder() {
		return sortOrder;
	}

	public void setSortOrder(String sortOrder) {
		this.sortOrder = sortOrder;
	}

}
